
#ifndef TRIANGLE_HPP_
#define TRIANGLE_HPP_

#include "Shape.hpp"

class Triangle : public Shape {
public:
	Triangle();
	Triangle(int x1, int y1, int x2, int y2, int x3, int y3);
	int getX1Top();
	int getY1Top();
	int getX2Left();
	int getY2Left();
	int getX3Right();
	int getY3Right();
	virtual ~Triangle();
	virtual bool isTriangle();

private:
	int x1Top,y1Top,x2Left,y2Left,x3Right,y3Right;
	virtual bool isRightOf(int xStart, int yStart, int xEnd, int yEnd, int x, int y);
};

#endif /* TRIANGLE_HPP_ */
